package buslogic;

public class ModelContainer {
//FIXME: ensure uniqueness for user/ session
//FIXME: ModelContainer - no encapsualtion here.
//       - more a namespace :-)

    public Double x1 = Double.NaN;
    public Double x2 = Double.NaN;
    public String validationErrors;

    public void validateModel() {
        ModelValidator mv = new ModelValidator();
        mv.validateModel(this);
        validationErrors = mv.getValidationErrors();
    }

    public String getValidationErrors() {
        return validationErrors;
    }

}
